!'use strict';
let backController = require('../../app/controller/back/BackController');
backController = ModelProxy(backController);
let router = require('express').Router();

// 首页（注意：是后台-首页）
let homepageRouter = require('./HomepageRouter');
router.use('/homepage', homepageRouter);

// 告警管理
let alarmRouter = require('./alarm/alarmRouter');
router.use('/alarm', alarmRouter);

/*工单管理——工单管理*/
let orderRouter = require('./workorder/orderRouter');
router.use('/workorder/order', orderRouter);
/*工单管理——待办工单*/
let backlogRouter = require('./workorder/backlogRouter');
router.use('/workorder/backlog', backlogRouter);

// 数据报表——告警信息
let alarmInfoRouter = require('./report/alarmInfoRouter');
router.use('/report/alarmInfo', alarmInfoRouter);
// 数据报表——工单信息
let workOrderRouter = require('./report/workOrderRouter');
router.use('/report/workOrder', workOrderRouter);
// 数据报表——历史开关灯时间
let historyTimeRouter = require('./report/historyTimeRouter');
router.use('/report/historyTime', historyTimeRouter);
// 数据报表——终端信息
let terminalReportRouter = require('./report/terminalReportRouter');
router.use('/report/terminalReport', terminalReportRouter);
/*数据报表——报文日志*/
let logMessageRouter = require('./report/logMessageRouter');
router.use('/report/logMessage', logMessageRouter);
/*数据报表——单灯工况*/
let singleLightConditionRouter = require('./report/singleLightConditionRouter');
router.use('/report/singleLightCondition', singleLightConditionRouter);

/*运营管理——单灯管理*/
let singleLampRouter = require('./operate/singleLampRouter');
router.use('/operate/singleLamp', singleLampRouter);
/*运营管理——分组管理*/
let groupsRouter = require('./operate/groupsRouter');
router.use('/operate/groups', groupsRouter);
/*运营管理——项目管理*/
let projectRouter = require('./operate/projectRouter');
router.use('/operate/project', projectRouter);
/*运营管理——照明策略*/
let lightmethodRouter = require('./operate/lightmethodRouter');
router.use('/operate/lightmethod', lightmethodRouter);
/*运营管理——sim卡管理*/
let simRouter = require('./operate/simRouter');
router.use('/operate/sim', simRouter);
/*运营管理——短信设置*/
let smsRouter = require('./operate/smsRouter');
router.use('/operate/sms', smsRouter);


/*运行监控*/

let runMontiorRouter = require('./runMontior/runMontiorRouter');
router.use('/runMontior', runMontiorRouter);


/*系统设置——权限设置（功能 + 数据）*/
let permissionRouter = require('./system/permissionRouter');
router.use('/system/permission', permissionRouter);
/*系统设置——账户管理*/
let accountManagementRouter = require('./system/accountManagementRouter');
router.use('/system/accountManagement', accountManagementRouter);
/*系统设置——角色管理*/
let roleManagementRouter = require('./system/roleManagementRouter');
router.use('/system/roleManagement', roleManagementRouter);
/*系统设置——系统参数管理*/
let systemparaRouter = require('./system/systemparaRouter');
router.use('/system/systempara', systemparaRouter);
/*系统设置——数据字典管理*/
let dictionaryRouter = require('./system/dictionaryRouter');
router.use('/system/dictionary', dictionaryRouter);
/*系统设置——组织机构管理*/
let organizeRouter = require('./system/organizeRouter');
router.use('/system/organize', organizeRouter);

/*日志中心*/
let logsRouter = require('./logs-center/logsRouter');
router.use('/logs', logsRouter);




// 托盘——组织机构
let BootstrapRouter = require('./Bootstrap/BootstrapRouter');
router.use('/Bootstrap', BootstrapRouter);



// 个人信息
let memberCenterRouter = require('./MemberCenterRouter');
router.use('/memberCenter', memberCenterRouter);
// 后台主页
router.get('/', backController.backPage);

module.exports = router;
